Skip to content

fix(cloudevents): correct prose example shapes and identities - #710

Closed
marcschier wants to merge 1 commit into
xregistry:mainfrom
marcschier:fix/spec-636-cloudevents-example-identities
Closed

marcschier wants to merge 1 commit into
xregistry:mainfrom
marcschier:fix/spec-636-cloudevents-example-identities

Conversation

@marcschier

Copy link
Copy Markdown
Contributor

Fixes #636

Proposed Changes

  • Correct all four directly coupled CloudEvents prose layout illustrations to array-valued usage, valid Registry IDs, and current envelope/protocol/protocoloptions/envelopemetadata fields.
  • Correct the shared Message's self/XID/Meta/Versions navigation to its actual Message Group parent; align root self URLs with the shown child navigation.
  • Use Protobuf/3 and the existing :Metrics message selector. Keep the precise Schema Version reference and include that Version's projection so the local JSON Pointer actually resolves.

Compatibility and limits

These are source-example corrections, not changes to Core admission or protocol semantics. Compact, shared, API-reference and file-reference layouts remain distinct. The selected Version projection explicitly omits other server-managed attributes; remote illustrations retain their declared abbreviation/comment notation.

The first two examples are strictly parsed as complete JSON, while the two explicitly abbreviated illustrations are parsed as YAML. Tests check actual parent navigation and resolve the local selected-object reference. They do not claim full model admission, a general Protobuf parser, or real server/SDK interoperability. All eleven impossible date literals are deliberately unchanged for separately published #638. No schema identifiers, scenario samples, models or generated artifacts are changed; #566's samples are not duplicated.

Requirement evidence

Requirement Concrete test
Current fields and native usage/metadata kinds test_current_endpoint_shapes_in_all_four_layout_examples, test_compact_and_shared_messages_use_flat_native_declarations
Valid IDs and real parent-owned navigation test_actual_parent_ids_self_xid_and_navigation_are_consistent
Local precise Version and existing Protobuf message selection test_shared_reference_selects_the_actual_inline_protobuf_version_and_message
Preserve compact/shared/API/file layouts test_compact_shared_api_and_file_reference_layouts_remain_distinct

Old examples: 10 failed, 1 passed. Corrected isolated focused suite: 11 passed. Full python -B -m pytest tools -q --tb=short -p no:cacheprovider -p pytest_asyncio.plugin: 78 passed, four existing deprecation warnings. Actual changed Markdown: 2 files / 22 links, plus spelling, tabs/trailing spaces, ticks, forbidden-link form, new-file LF and staged/committed diff checks passed. Explicit scope check confirms the separate eleven dates remain unchanged.

Standalone pinned base: 9ecf8ea67bc9a6128c154b4545a21164493cc71e. Draft because three files changed. No prerequisite commits copied or stacked.

CloudEvents prose examples now use current domain shapes, valid Registry IDs, parent-correct Message navigation, and a resolvable Protobuf message selection while preserving compact and shared layouts.

Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier

Copy link
Copy Markdown
Contributor Author

Superseded by xregistry/spec#722 (bundle A), xregistry/spec#723 (bundle B). The selected substantive changes at reviewed head bac60b1 are mapped in those replacement descriptions, with this original discussion and issue provenance retained.

Specification-text assertions and synthetic policy-test Python were deliberately omitted; qualifying real-artifact checks were retained or pruned as documented. Unmodified baseline Python and historical source branches are preserved.

Verified immediately before closing: xregistry/spec#722 at 43e452e: verify and DCO both passed; xregistry/spec#723 at 1866531: verify and DCO both passed.

Closing only this fully superseded original. Separate d/e proposals remain open, and no source branch is deleted.

@marcschier marcschier closed this Sep 15, 2026
duglin pushed a commit that referenced this pull request Sep 23, 2026
* fix(docs): correct specification and example errors

Transfer only the approved category-a documentation hunks. Keep policy,
metadata-view, generated-artifact and tooling changes in their own bundles.
Preserve the existing sample-validation Python without importing prose tests.

Refs: #668, #669, #671,
#672, #674, #676,
#682, #693, #695,
#704, #705, #710,
#711, #717, #718.

Refs: #609. These residual serialization repairs complement,
but do not absorb or complete, the separately owned #657 work.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(core): repair selected Resource example punctuation

Add the three missing member separators and remove the extra brace from the reviewed Patch Resource initial state.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(cloudevents): drop the added sample-abbreviation sentences

Review feedback on #722 asked to remove both new sentences; the samples and their corrected literals are unchanged otherwise.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

---------

Signed-off-by: Marc Schier <marcschier@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct domain shapes and parent identities in CloudEvents prose examples

1 participant